<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>二维码支付</title>
	<link rel="stylesheet" href="{$style}/css/style.css">
	<script src="{$style}/js/art/artDialog.source.js?skin=opera"></script>
	<script src="{$style}/js/art/plugins/iframeTools.source.js"></script>
	<script src="{$style}/js/jquery-1.8.0.min.js"></script>
	<script src="{$style}/js/myWdatePicker/WdatePicker.js"></script>
	<script src="{$style}/js/qrcode.js"></script>
	<script type="text/javascript">
      window.document.onkeydown=function(){
			if(window.event.keyCode==27){
			 	art.dialog.close();
			}
		}
	</script>
</head>
<body style="background-color:#FFF">
	<div class="w_420 h_300 bc_FFF bor_137ABF">
		<div class="w_bai h_40 bc_137ABF l_h40">
			<div class="f_l l_m20 c_FFF">微信扫码支付</div>
			<div class="f_r r_m20 t_m12 close2" onclick="closeWindow()"></div>
		</div>
		<div class="w_bai t_m40 c_656565 dis_inline">
			<div class="f_l l_m55 f_s16"  style="_margin-left:28px">
				使用手机微信扫描二维码付款[仅限本人使用]
			</div>
		</div>
		<div class="w_bai t_m30 t_c dis_inline">
			<div id="qrcode"></div>
		</div>
	</div>
	<script type="text/javascript">
		function closeWindow(){
			parent.closeWindow();
		}
		var url = "<?php echo $code_url;?>";
		//参数1表示图像大小，取值范围1-10；参数2表示质量，取值范围'L','M','Q','H'
		var qr = qrcode(10, 'M');
		qr.addData(url);
		qr.make();
		var wording=document.createElement('p');
		wording.innerHTML = "扫码付款";
		var code=document.createElement('DIV');
		code.innerHTML = qr.createImgTag();
		var element=document.getElementById("qrcode");
		element.appendChild(wording);
		element.appendChild(code);
	</script>
</body>
</html>